package com.s3s.ssm.view.cashier;

import javax.swing.JPanel;

import java.awt.BorderLayout;

import javax.swing.JScrollPane;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;
import javax.swing.border.TitledBorder;

public class TablePane extends JPanel {
	private static final long serialVersionUID = 1L;

	/**
	 * Create the panel.
	 */
	public TablePane() {
		setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "Danh sach ban, phong", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		scrollPane.setViewportView(panel);
		panel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
		
		JButton lblBan = new JButton("Ban1");
		lblBan.setContentAreaFilled(false);
		lblBan.setHorizontalTextPosition(SwingConstants.CENTER);
		lblBan.setVerticalTextPosition(SwingConstants.BOTTOM);
		lblBan.setIcon(new ImageIcon(TablePane.class.getResource("/images/close_table.png")));
		panel.add(lblBan);
		
		JButton lblBan_1 = new JButton("Ban2");
		lblBan_1.setContentAreaFilled(false);
		lblBan_1.setHorizontalTextPosition(SwingConstants.CENTER);
		lblBan_1.setVerticalTextPosition(SwingConstants.BOTTOM);
		lblBan_1.setIcon(new ImageIcon(TablePane.class.getResource("/images/open_table.png")));
		panel.add(lblBan_1);

	}

}
